/* 导入全局主题样式 */
@import './theme.css';

.home-container {
  height: 100vh;
  width: 100%;
  margin: 0;
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%));
}

.main-container {
  height: 100%;
  width: 100%;
}

.sidebar {
  background-color: #545c64;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #666;
}

.sidebar-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.header {
  background-color: var(--header-background, #fff);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 60px;
}

.header-left {
  font-size: 20px;
}

.header-right {
  display: flex;
  align-items: center;
}

.dropdown-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.dropdown-link:hover {
  background-color: var(--background-color);
}

.avatar {
  margin-right: 8px;
}

.content {
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%));
  padding: 0;
  overflow-y: auto;
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.welcome-message {
  text-align: left;
  padding: 60px 80px;
  background: var(--card-background, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.welcome-header {
  margin-bottom: 30px;
}

.welcome-header h2 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 36px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.animated-line {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  border-radius: 2px;
  animation: lineGrow 2s ease-in-out infinite alternate;
}

@keyframes lineGrow {
  0% {
    width: 40px;
  }
  100% {
    width: 120px;
  }
}

.welcome-message p {
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--card-background, rgba(255, 255, 255, 0.8));
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: var(--card-background, rgba(255, 255, 255, 0.95));
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon .el-icon {
  font-size: 24px;
  color: white;
}

.feature-card h3 {
  color: var(--text-color);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.floating-shapes {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 15s infinite ease-in-out;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: var(--success-color);
  top: 70%;
  left: 80%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: var(--warning-color);
  top: 40%;
  left: 70%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--danger-color);
  top: 80%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .welcome-message {
    padding: 40px 20px;
  }
  
  .welcome-header h2 {
    font-size: 28px;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
}
